<%@ page contentType="text/plain;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<c:if test="${!(empty callback)}">${callback}(</c:if>{
  <c:forEach var="machine" begin="0" items="${data}" varStatus="status">
    <c:if test="${status.index != 0}">,</c:if>"${machine.chassisNo}":{
        "chassisNo": "${machine.chassisNo}",
    	"name": "${machine.name}",
    	"type": {"name" : "${machine.type.name}", "generation" : "${machine.type.generation}" , "description" : "${machine.type.description}"},
    	"model": "${machine.model}",
    	"brand": "${machine.brand}"
      }</c:forEach>  
}<c:if test="${!(empty callback)}">)</c:if>